package itsecurity.cert;

import java.security.Provider;

/**
 * Custom Provider class that presents the algorithms
 * used to hash and sign certificates.
 */
public final class MDBProvider extends Provider {
 
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * Call super to specify name, version number and description
	 */
	public MDBProvider() {
	 super("MDB", 1.0, "MDB provider v1.0, implementing " + 
	      "RSA signing and key generation, DES in Davies-Meyer mode message digest.");
	 
	 put("Signature.mdbWithRSAEncryption",   "itsecurity.cert.Signature");
	 put("Alg.Alias.Signature.OID.1.3.6.1.4.1.2706.4.1.2", "mdbWithRSAEncryption");
	 put("MessageDigest.MDB", "itsecurity.hash.DaviesMeyerDES");
	 put("Alg.Alias.MessageDigest.OID.1.3.6.1.4.1.2706.4.1.1", "MDB");

	 put("Signature.roqueMdbWithRSAEncryption",   "itsecurity.cert.roque.SignatureRoque");
	 put("Alg.Alias.Signature.OID.1.3.6.1.4.1.2706.4.1.4", "roqueMdbWithRSAEncryption");
	 put("MessageDigest.roqueMDB", "itsecurity.hash.roque.DaviesMeyerDESRoque");
	 put("Alg.Alias.MessageDigest.OID.1.3.6.1.4.1.2706.4.1.3", "roqueMDB");
	 
	}
}
